#ifndef EXTERME_C_EXAMPLES_CHAPTER_7_2_PLAYER_H
#define EXTERME_C_EXAMPLES_CHAPTER_7_2_PLAYER_H

//类型前向声明
struct player_t;
struct gun_t;

//内存分配函数
struct player_t* player_new();

//构造函数
void player_ctor(struct player_t*, const char*);
//析构函数
void player_dtor(struct player_t*);
//行为函数
void player_pickup_gun(struct player_t*, struct gun_t*);
void player_shoot(struct player_t*);
void player_drop_gun(struct player_t*);


#endif